package com.github.slprj.slake.log;

/**
 * Des:
 * SL日志 提供暴露日志能力工具
 *
 * @author captain
 * @date 2022/8/19 18:11
 */
public class SlLogs {
    public static SlLogFactory instance;

    static {
        if (Slf4jFactory.isSlf4jExist()) {
            instance = new Slf4jFactory();
        } else {
            instance = new JdkFactory();
        }
    }

    public static SlLog getLogger(String name) {
        return instance.getLogger(name);
    }

    public static SlLog getLogger(Class<?> clazz) {
        return instance.getLogger(clazz);
    }
}
